﻿using System.Windows.Forms;
using System.Collections.Generic;

namespace Edu.ZJ
{
    public partial class AccountForm : Form
    {
        public AccountForm()
        {
            InitializeComponent();

            Init();
        }

        private void Init()
        {
           var list = AccountUtil.GetAccountList();

            gridView.DataSource = list;
        }

        public List<AccountModel > GetList()
        {
            return gridView.DataSource as List<AccountModel>;
        }
    }
}
